import request from '@/utils/request'

// 查询销售退货详情列表
export function listSaleBackDetail(query) {
  return request({
    url: '/xiaoshou/saleBackDetail/list',
    method: 'get',
    params: query
  })
}

// 查询销售退货详情详细
export function getSaleBackDetail(id) {
  return request({
    url: '/xiaoshou/saleBackDetail/' + id,
    method: 'get'
  })
}

// 新增销售退货详情
export function addSaleBackDetail(data) {
  return request({
    url: '/xiaoshou/saleBackDetail',
    method: 'post',
    data: data
  })
}

// 修改销售退货详情
export function updateSaleBackDetail(data) {
  return request({
    url: '/xiaoshou/saleBackDetail',
    method: 'put',
    data: data
  })
}

// 删除销售退货详情
export function delSaleBackDetail(id) {
  return request({
    url: '/xiaoshou/saleBackDetail/' + id,
    method: 'delete'
  })
}
